/* ==================
          布局
 ==================== */
.a{cursor: pointer;}
/* -- flex弹性布局 -- */
@mixin flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex { display: flex; }
.inline-flex { display: inline-flex; }

.basis-3 { flex-basis: 33.33%; }
.basis-4 { flex-basis: 25%; }
.basis-xs { flex-basis: 20%; }
.basis-sm { flex-basis: 40%; }
.basis-df { flex-basis: 50%; }
.basis-lg { flex-basis: 60%; }
.basis-xl { flex-basis: 80%; }

.flex-sub { flex: 1; }
.flex-twice { flex: 2; }
.flex-treble { flex: 3; }

.flex-direction { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }

.flex-center{
  @include flex-center;
}

.flex-shrink-0 {
  flex-shrink: 0;
}

/* -- align-items -- */
.align-start { align-items: flex-start; }
.align-end { align-items: flex-end; }
.align-center { align-items: center; }
.align-stretch { align-items: stretch; }

/* -- align-self -- */
.self-start { align-self: flex-start; }
.self-end { align-self: flex-end; }
.self-center { align-self: center; }
.self-stretch { align-self: stretch; }


/* -- justify-content -- */
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }

/* 内外边距：通用样式 */
.m-0 { margin: 0 !important; }
.p-0 { padding: 0 !important; }

/* 上下左右内外边距 */
.m-t-0 { margin-top: 0 !important; }
.m-b-0 { margin-bottom: 0 !important; }
.m-l-0 { margin-left: 0 !important; }
.m-r-0 { margin-right: 0 !important; }

.p-t-0 { padding-top: 0 !important; }
.p-b-0 { padding-bottom: 0 !important; }
.p-l-0 { padding-left: 0 !important; }
.p-r-0 { padding-right: 0 !important; }

/* -- 边距和填充循环 -- */
@function spacing($i) {
  @return $i + px;
}

@for $i from 2 through 50 {
  @if $i % 2 == 0 or $i % 5 == 0 {
    .m-#{$i} { margin: spacing($i); }
    .p-#{$i} { padding: spacing($i); }
    .m-r-#{$i} { margin-right: spacing($i); }
    .p-r-#{$i} { padding-right: spacing($i); }
    .m-l-#{$i} { margin-left: spacing($i); }
    .p-l-#{$i} { padding-left: spacing($i); }
    .m-t-#{$i} { margin-top: spacing($i); }
    .p-t-#{$i} { padding-top: spacing($i); }
    .m-b-#{$i} { margin-bottom: spacing($i); }
    .p-b-#{$i} { padding-bottom: spacing($i); }
    .m-tb-#{$i} { margin-top: spacing($i); margin-bottom: spacing($i); }
    .p-tb-#{$i} { padding-top: spacing($i); padding-bottom: spacing($i); }
    .m-lr-#{$i} { margin-left: spacing($i); margin-right: spacing($i); }
    .p-lr-#{$i} { padding-left: spacing($i); padding-right: spacing($i); }
  }
}


/* -- 浮动 -- */
.fl { float: left; }
.fr { float: right; }

/* -- 鼠标 -- */
.hand { cursor: pointer; }

/* -- 文本 -- */
.text-c, .text-center { text-align: center; }
.text-l { text-align: left; }
.text-r { text-align: right; }
.text-nowrap {white-space: nowrap; }
.text-normal { font-weight: normal; }
.text-500, .text-600 { font-weight: 500; }
.text-bold { font-weight: bold; }

// 字体大小遍历
@for $j from 10 through 100 {
  @if $j % 2 == 0 {
    .font#{$j} { font-size: #{$j}px; }
  }
}

.bbx{
  box-sizing: border-box;
}

// 省略
.omit {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-all;
}
